﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MyX.Core;

namespace LearningEnglish.Models
{
    public class LearnPlan : XEntity
    {
        public LearnPlan(Guid userID, Guid wordBookID, List<string> words)
            : this()
        {
            Update(new LearnPlanCreated() { UserID = userID, WordBookID = wordBookID, Words = words });
        }

        public LearnPlan(Guid id) : base(id) { }
        public LearnPlan()
            : base()
        {

        }

        public void Read(string word)
        {

        }

        public void Task(DateTime date)
        {

        }

        public void Add(string word)
        {

        }

        public void Remove(string word)
        {

        }
    }

    public class LearnPlanCreated : XEvent
    {
        public Guid UserID { get; set; }
        public Guid WordBookID { get; set; }
        public List<string> Words { get; set; }
    }

    public class LearnPlanTaskCreated : XEvent
    {
        public List<string> Words { get; set; }
    }

    public class LearnPlanWordAdded : XEvent
    {

    }

    public class LearnPlanWordRemoved : XEvent
    {

    }

    public class LearnPlanWordReaded : XEvent
    {

    }

}